package com.yxq.mdt.app.modules.order.bean;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * @author L
 * @time 2019-11-01
 * @describe 微信支付返回
 */
public class OrderPayResultWxBean {

    /**
     * appId : wx4f5d4e2d4531e1ce
     * timeStamp : 1571638640
     * nonceStr : a5b81d9a1e5cdcaf68152598ec6f925a
     * package : prepay_id=wx21141720348166b8f8db9db61770053600
     * signType : MD5
     * paySign : B62AC2BA1D5ACF379B15F79900FE986F
     */

    private String appId;
    private String timeStamp;
    private String nonceStr;
    @JSONField(name="package")
    private String packageX;
    private String signType;
    private String paySign;
    private String body;
    private ResBean res;

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public void setRes(ResBean res) {
        this.res = res;
    }

    public ResBean getRes() {
        return res;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(String timeStamp) {
        this.timeStamp = timeStamp;
    }

    public String getNonceStr() {
        return nonceStr;
    }

    public void setNonceStr(String nonceStr) {
        this.nonceStr = nonceStr;
    }

    public String getPackageX() {
        return packageX;
    }

    public void setPackageX(String packageX) {
        this.packageX = packageX;
    }

    public String getSignType() {
        return signType;
    }

    public void setSignType(String signType) {
        this.signType = signType;
    }

    public String getPaySign() {
        return paySign;
    }

    public void setPaySign(String paySign) {
        this.paySign = paySign;
    }

    public static class ResBean {

        /**
         * return_code : SUCCESS
         * return_msg : OK
         * appid : wx4f5d4e2d4531e1ce
         * mch_id : 1556533921
         * nonce_str : b7JN3hHz8sFl5qNF
         * sign : 4A0158245178E3F527A70D12F4340B7E
         * result_code : SUCCESS
         * prepay_id : wx21141720348166b8f8db9db61770053600
         * trade_type : JSAPI
         */

        private String return_code;
        private String return_msg;
        private String appid;
        private String mch_id;
        private String nonce_str;
        private String sign;
        private String result_code;
        private String prepay_id;
        private String trade_type;

        public String getReturn_code() {
            return return_code;
        }

        public void setReturn_code(String return_code) {
            this.return_code = return_code;
        }

        public String getReturn_msg() {
            return return_msg;
        }

        public void setReturn_msg(String return_msg) {
            this.return_msg = return_msg;
        }

        public String getAppid() {
            return appid;
        }

        public void setAppid(String appid) {
            this.appid = appid;
        }

        public String getMch_id() {
            return mch_id;
        }

        public void setMch_id(String mch_id) {
            this.mch_id = mch_id;
        }

        public String getNonce_str() {
            return nonce_str;
        }

        public void setNonce_str(String nonce_str) {
            this.nonce_str = nonce_str;
        }

        public String getSign() {
            return sign;
        }

        public void setSign(String sign) {
            this.sign = sign;
        }

        public String getResult_code() {
            return result_code;
        }

        public void setResult_code(String result_code) {
            this.result_code = result_code;
        }

        public String getPrepay_id() {
            return prepay_id;
        }

        public void setPrepay_id(String prepay_id) {
            this.prepay_id = prepay_id;
        }

        public String getTrade_type() {
            return trade_type;
        }

        public void setTrade_type(String trade_type) {
            this.trade_type = trade_type;
        }

        @Override
        public String toString() {
            return "ResBean{" +
                    "return_code='" + return_code + '\'' +
                    ", return_msg='" + return_msg + '\'' +
                    ", appid='" + appid + '\'' +
                    ", mch_id='" + mch_id + '\'' +
                    ", nonce_str='" + nonce_str + '\'' +
                    ", sign='" + sign + '\'' +
                    ", result_code='" + result_code + '\'' +
                    ", prepay_id='" + prepay_id + '\'' +
                    ", trade_type='" + trade_type + '\'' +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "OrderPayResultWxBean{" +
                "appId='" + appId + '\'' +
                ", timeStamp='" + timeStamp + '\'' +
                ", nonceStr='" + nonceStr + '\'' +
                ", packageX='" + packageX + '\'' +
                ", signType='" + signType + '\'' +
                ", paySign='" + paySign + '\'' +
                ", body='" + body + '\'' +
                ", res=" + res +
                '}';
    }
}
